﻿<%@ Control Language="C#" Inherits="Yuanlin.Business.AquacultureKebieManageControl, Yuanlin.Business" AutoEventWireup="true" %>

<script language="javascript" type="text/javascript">
<!--
function checkInfo() {
    var chked=false;  
    var checkobj = document.getElementById('<%= kebieCheckBoxList.ClientID %>'); 
    var checks = checkobj.getElementsByTagName("input"); 
    var ichecked = 0;
    for(var n=0;n <checks.length;n++) 
    { 
        if(checks[n].type== "checkbox" && checks[n].checked==true) 
        { 
           chked=true; 
           ichecked=ichecked+1;
        } 
    } 
    if(!chked)
    {
        alert('请选择一个科别！');
        return false;
    }
    else if (ichecked>1)
    {
        alert('只能属于一个科别！');
        return false;
    }
    return true;
}
//-->
</script>

<div class="AdminArea">
    <fieldset>
        <legend><nwap:ResourceLiteral runat="server" ResourceName="System_Applications_Yuanlin_EditAquacultureKebie" ResourceFile="ControlPanelResources.xml"></nwap:ResourceLiteral></legend>
        <div class="FormRow">
            <asp:CheckBoxList CssClass="CheckboxList" runat="server" RepeatDirection="Horizontal" RepeatColumns="7" ID="kebieCheckBoxList" />
        </div>
        <div class="FormRow SubmitButtonRow">
            <nwap:Resourcebutton id="SaveButton" ResourceName="Save" CssClass="Button" Runat="server" OnClientClick="return checkInfo();"></nwap:Resourcebutton>
        </div>
    </fieldset>
</div>
